//
//  JwHttpHandel.h
//  JwPack
//
//  Created by 陈警卫 on 2024-08-29.
//

#import <Foundation/Foundation.h>

@class JwHttpConfig;

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, JwHttpCode) {
    JwHttpCodeSuccess = 200, // 请求成功
    JwHttpCodeFinish = 10200, // 业务成功
    JwHttpCodeRefreshToken = 10402, // 刷新token
    JwHttpCodeLoginAgain = 10401, // 重新登录
};

@protocol JwHttpHandelDelegate <NSObject>

+ (BOOL)handelShouldSuccessWithConfig:(JwHttpConfig *)config;

+ (void)handelErrorResponseWithConfig:(JwHttpConfig *)config;

+ (void)handelErrorHttpWithConfig:(JwHttpConfig *)config;

+ (void)handelViewWithConfig:(JwHttpConfig *)config;

@end


@interface JwHttpHandel : NSObject<JwHttpHandelDelegate>


@end

NS_ASSUME_NONNULL_END
